<!doctype html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Bootstrap Admin</title>
    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="referrer" content="no-referrer"/>
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" type="text/css" href="/static/lib/bootstrap/css/bootstrap.css">
    <link rel="stylesheet" href="/static/lib/font-awesome/css/font-awesome.css">

    <script src="/static/lib/jquery-1.11.1.min.js" type="text/javascript"></script>

    <script src="/static/lib/jQuery-Knob/js/jquery.knob.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $(".knob").knob();
        });
    </script>

    <link rel="stylesheet" type="text/css" href="/static/stylesheets/theme.css">
    <link rel="stylesheet" type="text/css" href="/static/stylesheets/premium.css">

</head>

<body class=" theme-blue">

<!-- Demo page code -->

<script type="text/javascript">
    $(function () {
        var match = document.cookie.match(new RegExp('color=([^;]+)'));
        if (match) var color = match[1];
        if (color) {
            $('body').removeClass(function (index, css) {
                return (css.match(/\btheme-\S+/g) || []).join(' ')
            })
            $('body').addClass('theme-' + color);
        }

        $('[data-popover="true"]').popover({
            html: true
        })
    })
</script>
<style type="text/css">
    #line-chart {
        height: 300px;
        width: 800px;
        margin: 0px auto;
        margin-top: 1em;
    }

    .navbar-default .navbar-brand,
    .navbar-default .navbar-brand:hover {
        color: #fff;
    }
</style>

<div class="navbar navbar-default" role="navigation" style="height: 80px;">
    <div class="navbar-header">
        <a class=""><span class="navbar-brand" style="font-size: 20px;font-weight:bold;"><img
                src="/static/images/schoolBadge.png"
                style="height: 55px;width: 55px" alt=""/> 干部信息录入系统</span></a>
    </div>
    <div class="navbar-collapse collapse" style="height: 1px;">
        <ul id="main-menu" class="nav navbar-nav navbar-right">
            <li class="dropdown hidden-xs">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                    <span class="glyphicon glyphicon-user padding-right-small"
                          style="position:relative;height: 49px;"></span>{{ user.user_name }}
                    <i class="fa fa-caret-down"></i>
                </a>
                <ul class="dropdown-menu">
                    <li>
                        <a tabindex="-1" href="/user_loginout/">注销</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</div>

<div class="sidebar-nav">
    <ul>
        <li>
            <a href="#" class="nav-header" data-toggle="collapse"><i class="fa fa-fw fa-dashboard"></i> 信息管理</i>
            </a>
        </li>
        <li>
            <ul class="dashboard-menu nav nav-list collapse in">
                <li>
                    <a href="#"><span class="fa fa-caret-right"></span>个人信息</a>
                </li>
                <li>
                    <a href="/user_edit/"><span class="fa fa-caret-right"></span>修改信息</a>
                </li>
                <li>
                    <a href="/user_eva/"><span class="fa fa-caret-right"></span>评奖评优</a>
                </li>
            </ul>
        </li>
    </ul>
</div>

<div class="content">
    <div class="header">
        <h1 class="page-title" align="mid">个人资料</h1>
        <a class="btn-danger pull-right" href="/admin_upload_word/?id={{ user.id }}">下载个人信息</a>
    </div>
    <div class="main-content" style="font-size: larger;font-family: '楷体';">
        <img src="{{ user.user_photo.url }}" class="pull-right"/>
        <table class="table-condensed">
            <tr>
                <th>姓名：</th>
                <th>{{ user.user_name }}</th>
            </tr>
            <tr>
                <th>性别：</th>
                <th>{{ user.user_sex }}</th>
            </tr>
            <tr>
                <th>身份证号：</th>
                <th>{{ user.username }}</th>
            </tr>
            <tr>
                <th>出生年月：</th>
                <th>{{ user.user_birth }}</th>
            </tr>
            <tr>
                <th>联系方式：</th>
                <th>{{ user.user_phone }}</th>
            </tr>
            <tr>
                <th>邮箱地址：</th>
                <th>{{ user.user_email }}</th>
            </tr>
            <tr>
                <th>籍贯：</th>
                <th>{{ user.user_birthplace }}</th>
            </tr>
            <tr>
                <th>所在单位：</th>
                <th>{{ user.user_unit }}</th>
            </tr>
            <tr>
                <th></th>
            </tr>
            <tr>
                <th>评奖评优情况：</th>
            </tr>
        </table>
        <table class="table">
            <thead>
            <tr></tr>
            <tr>
                <th>#</th>
                <th>证书名称</th>
                <th>证书获得日期</th>
            </tr>
            </thead>
            <tbody>
            {% for app in app_list %}
                <tr>
                    <td>{{ forloop.counter }}</td>
                    <td>{{ app.app_name }}</td>
                    <td>{{ app.app_data }}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
</div>

<script src="/static/lib/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript">
    $("[rel=tooltip]").tooltip();
    $(function () {
        $('.demo-cancel-click').click(function () {
            return false;
        });
    });
</script>
</body>

</html>